from pathlib import Path
from rss_reader.database.database import init_db
from rss_reader.database.models import Feed, Article

test_db_path = Path('/tmp/test.db')
dbf1 = init_db(test_db_path)
dbf2 = init_db(test_db_path)
feed1 = Feed(title="title1", url="http://url1.com")
feed2 = Feed(title="title2", url="http://url2.com")

ss1 = dbf1()
ss2 = dbf2()

ss1.add(feed1)
ss2.add(feed2)

ss1.commit()
ss2.commit()

